package com.third.bank.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 用户余额日报表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user_balance_daily")
public class UserBalanceDaily {

    //用户余额日报ID
    private Long id;

    //用户ID
    @TableField("user_id")
    private Long userId;

    //时间
    @TableField("date_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime dateTime;

    //当日余额
    private BigDecimal balance;
}
